<div class="header_menu">
    <div class="container">
        <div class="header-nav clearfix">
            <?php echo $this->partial('shop/layout/headerMenu'); ?>
        </div>
    </div>
</div>
</div>
<div class="container breadcrumbs">
    <a href="<?php echo $this->url('shop'); ?>"><?php echo $this->translate('首页'); ?></a>
    <span class="sep">/</span><span><?php echo $this->translate('资料修改'); ?></span>
</div>
<?php
$form = $this->form;
$form->prepare();

$form->setAttributes(['class' => 'form-horizontal']);

$form->get('userSex')->setAttributes(['class' => 'span2']);
$form->get('userBirthday')->setAttributes(['class' => 'span3']);
?>
<div class="container">
    <div class="uc-full-box">
        <div class="row">
            <div class="span4">
                <?php echo $this->partial('shop/partial/home/leftMenu'); ?>
            </div>
            <div class="span16">
                <div class="xm-line-box uc-box uc-order-detail-box">
                    <div class="box-hd">
                        <h3 class="title">
                            <?php echo $this->translate('资料修改'); ?>
                        </h3>
                        <?php echo $this->partial('shop/partial/home/userMenu'); ?>
                    </div>
                    <div class="box-bd">
                        <?php echo $this->partial('shop/message'); ?>
                        <?php echo $this->form()->openTag($form); ?>
                            <div class="control-group">
                                <label class="control-label"><?php echo $this->translate('用户名称'); ?>：</label>
                                <div class="controls">
                                    <?php if ($this->loginAccountEditState == 1) { ?>
                                        <?php echo $this->formElement($form->get('userName')); ?>
                                        <?php echo $this->formElementErrors($form->get('userName'), ['class'=>'error-message']); ?>
                                    <?php } else { ?>
                                        <?php echo $this->escapeHtml($this->userInfo->getUserName()); ?>
                                    <?php } ?>
                                </div>
                            </div>
                        <div class="control-group">
                            <label for="input01" class="control-label"><?php echo $this->translate('性别'); ?><span class="must_add_value">*</span>：</label>
                            <div class="controls">
                                <?php echo $this->formElement($form->get('userSex')); ?>
                                <?php echo $this->formElementErrors($form->get('userSex'), ['class'=>'error-message']); ?>
                            </div>
                        </div>
                        <div class="control-group">
                            <label for="input01" class="control-label"><?php echo $this->translate('生日'); ?>：</label>
                            <div class="controls">
                                <?php echo $this->formElement($form->get('userBirthday')); ?>
                                <?php echo $this->formElementErrors($form->get('userBirthday'), ['class'=>'error-message']); ?>
                            </div>
                        </div>
                        <div class="offset3">
                            <button class="btn btn-primary" type="submit"><?php echo $this->translate('保存修改'); ?></button>
                        </div>
                        <?php echo $this->form()->closeTag(); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    laydate.render({
        elem: '#userBirthday'
    });
</script>